package vip.xiaonuo.bi.modular.dataset.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 数据集实体
 *   @author 顾育司
 */
@Data
@TableName("dataset")
public class Dataset {

    /** 自增id */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "数据集名称")
    private String name;

    @ApiModelProperty(value = "数据集描述")
    private String dataDesc;

    @ApiModelProperty(value = "数据量所占有空间")
    private String dataSize;

    @ApiModelProperty(value = "数据列统计")
    private Integer columnCount;

    @ApiModelProperty(value = "数据行统计")
    private Integer rowCount;

    @ApiModelProperty(value = "数据集类型")
    private String type;

    @ApiModelProperty(value = "数据集获取配置json")
    private String dataJson;

    @ApiModelProperty(value = "数据集拓展配置json")
    private String extendJosn;

    @ApiModelProperty(value = "数据集拓展配置json")
    private Long folderId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
//
//    @TableField(exist = false)
//    @ApiModelProperty(value = "分组节点")
//    private List<Object> children; // 无作用
}
